Skip to content

feat: uninstall Slice Machine packages during init migration#196

Open
angeloashmore wants to merge 1 commit into
mainfrom
aa/init-uninstall-slice-machine
Open

feat: uninstall Slice Machine packages during init migration#196
angeloashmore wants to merge 1 commit into
mainfrom
aa/init-uninstall-slice-machine

Conversation

@angeloashmore

@angeloashmore angeloashmore commented Jun 17, 2026

Copy link
Copy Markdown
Member

Resolves: #194

Description

When prismic init migrates a project from Slice Machine, it now uninstalls the Slice Machine packages it replaces: slice-machine-ui and any @slicemachine/adapter-* package (e.g. @slicemachine/adapter-next, @slicemachine/adapter-nuxt, @slicemachine/adapter-sveltekit). After migration these are dead weight, since the simulator comes from the framework's Prismic package and models are managed by the Type Builder and CLI.

The secondary cleanup mentioned in the issue (the slicemachine npm script and concurrently) is intentionally left out to keep the change minimal and avoid riskier automated edits.

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA

  1. In a project that still has slicemachine.config.json and the Slice Machine packages installed, run prismic init.
  2. Confirm slice-machine-ui and any @slicemachine/adapter-* package are gone from package.json after migration.

🤖 Generated with Claude Code

When migrating from Slice Machine, `prismic init` now removes the
`slice-machine-ui` and `@slicemachine/adapter-<framework>` packages,
which are no longer needed once models are managed by the Type Builder
and CLI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@angeloashmore angeloashmore force-pushed the aa/init-uninstall-slice-machine branch from 7d450db to 4f2179a Compare June 17, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prismic init should uninstall Slice Machine packages when migrating to the Type Builder/CLI

1 participant